* {
  margin: 0;
  padding: 0;
}

ul, li, ol {
  list-style: none;
}

a, a:hover, a:visited, a:link, a:active {
  text-decoration: none;
  color: #333;
}

/*  */
.clearFix::after, .clearFix::before {
  content: '';
  display: block;
  clear: both;
}

div.banner {
  width: 600px;
  height: 400px;
  border: 3px solid #333;
  margin: 30px auto;
  position: relative;
  overflow: hidden;
}

/* 对齐div左上角 宽度为5倍 高度铺满*/
.banner > ul {
  width: 500%;
  height: 100%;
  background-color: pink;
  position: absolute;
  top: 0;
  left: 0;
}

/* 左浮动横排 */
.banner > ul > li {
  width: 600px;
  height: 100%;
  float: left;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  font-size: 100px;
  cursor: pointer;
}

.banner > ol {
  height: 20px;
  position: absolute;
  background-color: rgba(0, 0, 0, .4);
  border-radius: 10px;

  bottom: 40px;
  left: 50%;

  /* 向左校正自身宽度的一半 */
  transform: translateX(-50%);

  display: flex;
  justify-content: space-evenly;
  align-items: center;
}

.banner > ol > li {
  width: 10px;
  height: 10px;
  background-color: #fff;
  border-radius: 50%;
  cursor: pointer;
}

.banner > ol > li.active {
  background-color: skyblue;
}

.banner > div {
  width: 100%;
  height: 40px;
  position: absolute;
  left: 0;
  top: 50%;
  /* 向上调整自身高度的一半 */
  transform: translateY(-50%);

  display: flex;
  justify-content: space-between;
  align-items: center;
}

.banner > div > a {
  width: 20px;
  height: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #fff;
  background-color: rgba(0, 0, 0, .4);
}
